query up||ClrLine||f3||'Q'noansi' - Quit 'f3'B'noansi' - Back Welche Areas? 'f4'['bright||f7'1'noansi'..'bright||f7||numareas||noansi||f4'] 'noansi ; choices = result
choices=upper(compress(choices))
if choices='' then return ''
if choices='B' then return ''
if choices='Q' then signal scriptexit
pp = ''
do while length(choices)~=0
send=1
kpos=pos(',',choices)
leni=length(choices)+1
if kpos=0 then kpos=leni
bpos=pos('-',choices)
if bpos=0 then bpos=leni
if kpos>0 & kpos<bpos then do
num=''
parse var choices num ',' choices
if num~='' & num>0 & num<=numareas then do
wht = ((num % 31)*4)+1
pos = (num // 31)
str=substr(UserExcl,wht,4)
if what then
str=bitset(str,pos)
else
str=bitclr(str,pos)
UserExcl=overlay(str,UserExcl,wht,4)
end
end
if bpos>0 & bpos<kpos then do
von=''
bis=''
parse var choices von '-' bis ',' choices
if bis='' then bis=numareas
if von='' then von=1
do mm = von to bis
if mm>0 & mm<=numareas then do
wht = ((mm % 31)*4)+1
pos = (mm // 31)
str=substr(UserExcl,wht,4)
if what then
str=bitset(str,pos)
else
str=bitclr(str,pos)
UserExcl=overlay(str,UserExcl,wht,4)
end
end
end
if (Bpos=leni) & (kpos=leni) then do
if choices~='' & choices>0 & choices<=numareas then do